package org.dromara.oce.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.oce.domain.OceEverydayCostHours;
import org.dromara.oce.domain.vo.OceEverydayCostHoursVo;

import java.util.List;

/**
 * 广告主消耗记录Mapper接口
 *
 * @author Lion Li
 * @date 2024-12-24
 */
public interface OceEverydayCostHoursMapper extends BaseMapperPlus<OceEverydayCostHours, OceEverydayCostHoursVo> {

    /**
     * 查询满足条件的所有时速
     * @param wrapper
     * @return
     */
    @DataPermission({
        @DataColumn(key = "deptName", value = "dept_id")
    })
    List<OceEverydayCostHours> getOceHoursCost(@Param("ew") Wrapper<OceEverydayCostHours> wrapper);

    @Override
    @DataPermission({
        @DataColumn(key = "deptName", value = "dept_id")
    })
    List<OceEverydayCostHours> selectList(IPage<OceEverydayCostHours> page, @Param(Constants.WRAPPER) Wrapper<OceEverydayCostHours> queryWrapper);

    @Override
    @DataPermission({
        @DataColumn(key = "deptName", value = "dept_id")
    })
    List<OceEverydayCostHours> selectList(@Param(Constants.WRAPPER) Wrapper<OceEverydayCostHours> queryWrapper);

    List<OceEverydayCostHours> selectJobList(@Param(Constants.WRAPPER) Wrapper<OceEverydayCostHours> queryWrapper);

}
